import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router';
import router from './router';
import store from './store';
// 引入自定义插件
import plugins from './plugins';
import { 
	Button, Container, Header, Aside, Main, Row, Col, Menu, Submenu, MenuItemGroup, MenuItem,
	Tag, Input, Radio, Checkbox, CheckboxGroup, Select, Option

} from 'element-ui';
import './plugins/element.js';
import mavonEditor from 'mavon-editor' // vue markdown插件
import 'mavon-editor/dist/css/index.css'

Vue.config.productionTip = false
Vue.use(VueRouter);
Vue.use(plugins); // 使用自定义插件
Vue.use(mavonEditor);
Vue.use(Button);
Vue.use(Container);
Vue.use(Header);
Vue.use(Aside);
Vue.use(Main);
Vue.use(Row);
Vue.use(Col);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItemGroup);
Vue.use(MenuItem);
Vue.use(Tag);
Vue.use(Input);
Vue.use(Radio);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Select);
Vue.use(Option);

new Vue({
	render: h => h(App),
	router,
	store,
	beforeCreate() {
		Vue.prototype.$bus = this; // 挂载全局事件总线
	}
}).$mount('#app')
